package org.simalliance.openmobileapi;

import java.io.IOException;

public class Channel {


    android.se.omapi.Channel mChannel;
    private Session mSession;

    Channel(android.se.omapi.Channel channel, Session paramSession) {
        this.mSession = paramSession;
        this.mChannel = channel;
    }

    public void close() {
        mChannel.close();
    }

    public byte[] getSelectResponse() {
        return mChannel.getSelectResponse();
    }

    public Session getSession() {
        return this.mSession;
    }

    public boolean isBasicChannel() {
        return mChannel.isBasicChannel();
    }

    public boolean isClosed() {
        return !mChannel.isOpen();
    }

    public boolean selectNext() throws IOException, IllegalStateException, UnsupportedOperationException {
        return mChannel.selectNext();
    }

    public byte[] transmit(byte[] paramArrayOfbyte) throws IOException, IllegalStateException, IllegalArgumentException, SecurityException, NullPointerException {
        return mChannel.transmit(paramArrayOfbyte);
    }
}


